package com.ulife.order.api.errors;

import com.ulife.common.gateway.utils.entity.AbstractReturnCode;

/**
 * Created by Ulife on 2015/12/29.
 */
public class OrderErrorCodes extends AbstractReturnCode {
    public OrderErrorCodes(String desc, int code) {
        super(desc, code);
    }

    public static final int ORDER_NOT_FOUND = 30001;
    public static final OrderErrorCodes errorCodes_ORDER_NOT_FOUND = new OrderErrorCodes("不存在该订单",ORDER_NOT_FOUND);

    public static final int ORDER_STATUS_ERROR = 30002;
    public static final OrderErrorCodes getErrorCodes_ORDER_STATUS_ERROR = new OrderErrorCodes("订单状态不正确",ORDER_STATUS_ERROR);

    public static final int ADDRESS_NOT_FOUND = 30003;
    public static final OrderErrorCodes getErrorCodes_ADDRESS_NOT_FOUND = new OrderErrorCodes("地址不存在",ADDRESS_NOT_FOUND);

    public static final int ORDER_ITEM_NOT_EXIST = 30004;
    public static final OrderErrorCodes errorCodes_ORDER_ITEM_NOT_EXIST = new OrderErrorCodes("订单项不存在",ORDER_ITEM_NOT_EXIST);

    public static final int SKU_NOT_EXIST = 30005;
    public static final OrderErrorCodes errorCodes_SKU_NOT_EXIST = new OrderErrorCodes("商品不存在",SKU_NOT_EXIST);

    public static final int SKU_NOT_PERMIT_ADDED = 30006;
    public static final OrderErrorCodes errorCodes_SKU_NOT_PERMIT_ADDED = new OrderErrorCodes("商品不能添加进订单",SKU_NOT_PERMIT_ADDED);

    public static final int SKU_NOT_SAME_CATEGORY = 30007;
    public static final OrderErrorCodes errorCodes_SKU_NOT_SAME_CATEGORY = new OrderErrorCodes("商品不是同一类型，无法添加进订单",SKU_NOT_SAME_CATEGORY);

    public static final int ORDER_STATUS_NOT_CORRECT = 30008;
    public static final OrderErrorCodes errorCodes_ORDER_STATUS_NOT_CORRECT = new OrderErrorCodes("订单状态不正确",ORDER_STATUS_NOT_CORRECT);

    public static final int ORDER_SHIPPING_DATE_ILLEGAL = 30009;
    public static final OrderErrorCodes errorCodes_ORDER_SHIPPING_DATE_ILLEGAL = new OrderErrorCodes("订单配送日期非法",ORDER_SHIPPING_DATE_ILLEGAL);

    public static final int GENERATER_ORDER_NO_ERROR = 30010;
    public static final OrderErrorCodes errorCodes_GENERATER_ORDER_NO_ERROR = new OrderErrorCodes("生成订单号失败",GENERATER_ORDER_NO_ERROR);

    public static final int GENERATER_ORDER_ERROR = 30011;
    public static final OrderErrorCodes errorCodes_GENERATER_ORDER_ERROR = new OrderErrorCodes("生成订单失败",GENERATER_ORDER_ERROR);

    public static final int GENERATER_ORDER_STOCK_ERROR = 30012;
    public static final OrderErrorCodes errorCodes_GENERATER_ORDER_STOCK_ERROR = new OrderErrorCodes("库存异常",GENERATER_ORDER_STOCK_ERROR);

    public static final int ORDER_CANCEL_PARAMETER_ERROR = 30013;
    public static final OrderErrorCodes errorCodes_ORDER_CANCEL_PARAMETER_ERROR = new OrderErrorCodes("订单取消参数不正确",ORDER_CANCEL_PARAMETER_ERROR);

    public static final int ORDER_DELIVERYDATES_ERROR = 30014;
    public static final OrderErrorCodes errorCodes_ORDER_DELIVERYDATES_ERROR = new OrderErrorCodes("获取配送日期失败",ORDER_DELIVERYDATES_ERROR);

    public static final int ORDER_REFUNDAMOUNT_ERROR = 30015;
    public static final OrderErrorCodes errorCodes_ORDER_REFUNDAMOUNT_ERROR = new OrderErrorCodes("退款异常",ORDER_REFUNDAMOUNT_ERROR);

    public static final int ORDER_CALCULATIONPRODUCT_ERROR = 30016;
    public static final OrderErrorCodes errorCodes_ORDER_CALCULATIONPRODUCT_ERROR = new OrderErrorCodes("解析购物车商品失败",ORDER_CALCULATIONPRODUCT_ERROR);

    public static final int ORDER_CALCULATIONPROMOTIONS_ERROR = 30017;
    public static final OrderErrorCodes errorCodes_ORDER_CALCULATIONPROMOTIONS_ERROR = new OrderErrorCodes("解析购物车使用优惠失败",ORDER_CALCULATIONPROMOTIONS_ERROR);

    public static final int ORDER_PROMOTION_USE_ERROR = 30018;
    public static final OrderErrorCodes errorCodes_ORDER_PROMOTION_USE_ERROR = new OrderErrorCodes("优惠券使用失败",ORDER_PROMOTION_USE_ERROR);

    public static final int ORDER_GENERATE_ORDERNO_ERROR = 30019;
    public static final OrderErrorCodes errorCodes_ORDER_GENERATE_ORDERNO_ERROR = new OrderErrorCodes("生成订单号失败",ORDER_GENERATE_ORDERNO_ERROR);
    public static final int ORDER_PRODUCT_SERVICE_ERROR = 30020;
    public static final OrderErrorCodes errorCodes_ORDER_PRODUCT_SERVICE_ERROR = new OrderErrorCodes("商品服务",ORDER_PRODUCT_SERVICE_ERROR);

    public static final int ORDER_PAY_NOT_EXIST = 30021;
    public static final OrderErrorCodes errorCodes_ORDER_PAY_NOT_EXIST = new OrderErrorCodes("订单支付信息不存在",ORDER_PAY_NOT_EXIST);

    public static final int ORDER_SPLIT_ERROR = 30022;
    public static final OrderErrorCodes errorCodes_ORDER_SPLIT_ERROR = new OrderErrorCodes("订单拆分错误",ORDER_SPLIT_ERROR);

    public static final int ORDER_SAVE_STATUS_ERROR = 30023;
    public static final OrderErrorCodes errorCodes_ORDER_SAVE_STATUS_ERROR = new OrderErrorCodes("订单状态保存失败",ORDER_SAVE_STATUS_ERROR);

    public static final int ORDER_SAVE_SHIP_ORDER_TRACKING_ERROR = 30024;
    public static final OrderErrorCodes errorCodes_ORDER_SAVE_SHIP_ORDER_TRACKING_ERROR = new OrderErrorCodes("订单发货单&物流信息保存失败",ORDER_SAVE_SHIP_ORDER_TRACKING_ERROR);

    public static final int ORDER_SAVE_SHIP_ORDER_ERROR = 30025;
    public static final OrderErrorCodes errorCodes_ORDER_SAVE_SHIP_ORDER_ERROR = new OrderErrorCodes("订单发货单&物流信息保存失败",ORDER_SAVE_SHIP_ORDER_ERROR);

    public static final int ORDER_SAVE_TRACING_ERROR = 30026;
    public static final OrderErrorCodes errorCodes_ORDER_SAVE_TRACING_ERROR = new OrderErrorCodes("订单发货单&物流信息保存失败",ORDER_SAVE_TRACING_ERROR);

    public static final int ORDER_SPLIT_PAY_AMOUNT_ERROR = 30027;
    public static final OrderErrorCodes errorCodes_ORDER_SPLIT_PAY_AMOUNT_ERROR = new OrderErrorCodes("拆分订单支付信息之金额不足",ORDER_SPLIT_PAY_AMOUNT_ERROR);


    public static final int ORDER_DALIYLIMIT_ERROR = 30028;
    public static final OrderErrorCodes errorCodes_ORDER_daliylimit_ERROR = new OrderErrorCodes("限单异常",ORDER_DALIYLIMIT_ERROR);

    public static final int ArgumentFormat_ERROR = 30029;
    public static final OrderErrorCodes errorCodes_ArgumentFormat_ERROR = new OrderErrorCodes("参数格式有误",ArgumentFormat_ERROR);
    // 30030 ~ 30050
    public static final  int OUT_OF_STOCK_ERROR = 30030;
    public static final OrderErrorCodes errorCodes_OUT_OF_STOCK_ERROR = new OrderErrorCodes("库存不足提示(实际消息见运行时)",OUT_OF_STOCK_ERROR);


    public static final int ORDER_INPUT_ERROR = 30051;
    public static final OrderErrorCodes getErrorCodes_ORDER_INPUT_ERROR = new OrderErrorCodes("输入参数有误",ORDER_INPUT_ERROR);

    public static final int ORDER_LIST_RANGE_ERROR = 30052;
    public static final OrderErrorCodes getErrorCodes_ORDER_LIST_RANGE_ERROR = new OrderErrorCodes("查询时间范围太大",ORDER_INPUT_ERROR);
    //30053 ~ 30060
    public static final int PAY_CANNOTPAY = 30061;
    public static final OrderErrorCodes errorCodes_PAY_CANNOTPAY = new OrderErrorCodes("订单状态不可支付",PAY_CANNOTPAY);
    public static final int PAY_PAYERROR = 30062;
    public static final OrderErrorCodes errorCodes_PAY_PAYERROR = new OrderErrorCodes("支付请求失败",PAY_PAYERROR);
    public static final int PAY_FAILURE = 30063;
    public static final OrderErrorCodes errorCodes_PAY_FAILURE = new OrderErrorCodes("支付失败",PAY_PAYERROR);

    public static final int PAY_FAILURE_CREATE_SOREFUNDBILL_ERROR = 30064;
    public static final OrderErrorCodes errorCodes_PAY_FAILURE_CREATE_SOREFUNDBILL_ERROR = new OrderErrorCodes("支付失败创建退款单错误",PAY_FAILURE_CREATE_SOREFUNDBILL_ERROR);

    public static final int PAY_FAILURE_UPDATE_SALEORDERPAY_ERROR = 30065;
    public static final OrderErrorCodes errorCodes_PAY_FAILURE_UPDATE_SALEORDERPAY_ERROR = new OrderErrorCodes("支付失败更新订单支付记录失败",PAY_FAILURE_UPDATE_SALEORDERPAY_ERROR);
    public static final int PAY_FAILURE_UPDATE_SALEORDER_ERROR = 30066;
    public static final OrderErrorCodes errorCodes_PAY_FAILURE_UPDATE_SALEORDER_ERROR = new OrderErrorCodes("支付失败更新订单记录失败",PAY_FAILURE_UPDATE_SALEORDER_ERROR);

    public static final int ORDER_SHIP_NOT_FOUND = 30071;
    public static final OrderErrorCodes errorCodes_ORDER_SHIP_NOT_FOUND = new OrderErrorCodes("订单没有收货信息",ORDER_SHIP_NOT_FOUND);
    public static final int ORDERPAYPROMO_NOT_FOUND = 30088;
    public static final OrderErrorCodes errorCodes_ORDERPAYPROMO_NOT_FOUND = new OrderErrorCodes("订单支付绑定优惠券信息失败",ORDERPAYPROMO_NOT_FOUND);
    public static final int ORDERDETAILPROMO_NOT_FOUND = 30089;
    public static final OrderErrorCodes errorCodes_ORDERDETAILPROMO_NOT_FOUND = new OrderErrorCodes("订单详情页获取虚拟商品信息失败",ORDERDETAILPROMO_NOT_FOUND);
    public static final int USER_DEDUCT_ERROR = 30090;
    public static final OrderErrorCodes errorCodes_USER_DEDUCT_ERROR = new OrderErrorCodes("用户扣款失败",USER_DEDUCT_ERROR);
    public static final int USER_NOT_FOUND = 30091;
    public static final OrderErrorCodes errorCodes_USER_NOT_FOUND = new OrderErrorCodes("用户信息获取失败",USER_NOT_FOUND);
    public static final int COUPON_NOT_FOUND = 30092;
    public static final OrderErrorCodes errorCodes_COUPON_NOT_FOUND = new OrderErrorCodes("用户优惠券获取失败",COUPON_NOT_FOUND);
    public static final int ADDRESSLIST_NOT_FOUND = 30093;
    public static final OrderErrorCodes errorCodes_ADDRESSLIST_NOT_FOUND = new OrderErrorCodes("用户地址列表获取失败",ADDRESSLIST_NOT_FOUND);
    public static final int PRODUCTDELIVERYLIST_NOT_FOUND = 30094;
    public static final OrderErrorCodes errorCodes_PRODUCTDELIVERYLIST_NOT_FOUND = new OrderErrorCodes("商品配送时间列表获取失败",PRODUCTDELIVERYLIST_NOT_FOUND);
    public static final int CARTPRODUCT_NOT_FOUND = 30095;
    public static final OrderErrorCodes errorCodes_CARTPRODUCT_NOT_FOUND = new OrderErrorCodes("购物车获取商品信息失败",CARTPRODUCT_NOT_FOUND);
    public static final int COUPONLIST_NOT_FOUND = 30096;
    public static final OrderErrorCodes errorCodes_COUPONLIST_NOT_FOUND = new OrderErrorCodes("用户优惠券列表获取失败",COUPONLIST_NOT_FOUND);
    public static final int COUPONCALCULATE_NOT_FOUND = 30097;
    public static final OrderErrorCodes errorCodes_COUPONCALCULATE_NOT_FOUND = new OrderErrorCodes("优惠券计算失败",COUPONCALCULATE_NOT_FOUND);
    public static final int USERBALANCE_NOT_FOUND = 30098;
    public static final OrderErrorCodes errorCodes_USERBALANCE_NOT_FOUND = new OrderErrorCodes("用户余额获取失败",USERBALANCE_NOT_FOUND);
    public static final int PRODUCTPAYMENT_NOT_FOUND = 30099;
    public static final OrderErrorCodes errorCodes_PRODUCTPAYMENT_NOT_FOUND = new OrderErrorCodes("商品支付方式获取失败",PRODUCTPAYMENT_NOT_FOUND);

    public static final int SOCANNELBILL_PROCESS_ERROR = 31001;
    public static final OrderErrorCodes errorCodes_SOCANNELBILL_PROCESS_ERROR = new OrderErrorCodes("根据订单取消单据生成退款单据错误",SOCANNELBILL_PROCESS_ERROR);
    public static final int SOCANNELBILL_NOTFOUND_ERROR = 31002;
    public static final OrderErrorCodes errorCodes_SOCANNELBILL_NOTFOUND_ERROR = new OrderErrorCodes("未找到取消单据",SOCANNELBILL_NOTFOUND_ERROR);
    public static final int REFUNDBILL_GETLIST_ERROR = 31011;
    public static final OrderErrorCodes errorCodes_REFUNDBILL_GETLIST_ERROR = new OrderErrorCodes("获取订单退款单据列表错误",REFUNDBILL_GETLIST_ERROR);
    public static final int REFUNDBILL_GET_ERROR = 31021;
    public static final OrderErrorCodes errorCodes_REFUNDBILL_GET_ERROR = new OrderErrorCodes("获取退款单据详情错误",REFUNDBILL_GET_ERROR);
    public static final int REFUNDBILL_NOTFOUND_ERROR = 31022;
    public static final OrderErrorCodes errorCodes_REFUNDBILL_NOTFOUND_ERROR = new OrderErrorCodes("未找到订单退款单据",REFUNDBILL_NOTFOUND_ERROR);
    public static final int REFUNDBILL_PROCESS_ERROR = 31031;
    public static final OrderErrorCodes errorCodes_REFUNDBILL_PROCESS_ERROR = new OrderErrorCodes("回写&处理订单退款单据错误",REFUNDBILL_PROCESS_ERROR);
    public static final int REFUNDBILL_PROCESS_PARAM_ERROR = 31032;
    public static final OrderErrorCodes errorCodes_REFUNDBILL_PROCESS_PARAM_ERROR = new OrderErrorCodes("回写&处理订单退款单据参数错误",REFUNDBILL_PROCESS_PARAM_ERROR);

    public static final int ORDER_CANCEL_CreateBill_ERROR = 32001;
    public static final OrderErrorCodes errorCodes_ORDER_CANCEL_CreateBill_ERROR = new OrderErrorCodes("创建取消单据错误",ORDER_CANCEL_CreateBill_ERROR);


}
